import { axios } from '@/utils/request'

/**
 * 查询销售出库
 *
 * @author Eric
 * @date 2021-04-21 20:07:22
 */
export function outboundSalePage (parameter) {
  return axios({
    url: '/outboundSale/page',
    method: 'get',
    params: parameter
  })
}

/**
 * 销售出库列表
 *
 * @author Eric
 * @date 2021-04-21 20:07:22
 */
export function outboundSaleList (orderCode) {
  return axios({
    url: '/outboundSale/list',
    method: 'get',
    params: { saleOrderCode: orderCode }
  })
}

/**
 * 添加销售出库
 *
 * @author Eric
 * @date 2021-04-21 20:07:22
 */
export function outboundSaleAdd (parameter) {
  return axios({
    url: '/outboundSale/add',
    method: 'post',
    data: parameter
  })
}

/**
 * 编辑销售出库
 *
 * @author Eric
 * @date 2021-04-21 20:07:22
 */
export function outboundSaleEdit (parameter) {
  return axios({
    url: '/outboundSale/edit',
    method: 'post',
    data: parameter
  })
}

/**
 * 删除销售出库
 *
 * @author Eric
 * @date 2021-04-21 20:07:22
 */
export function outboundSaleDelete (parameter) {
  return axios({
    url: '/outboundSale/delete',
    method: 'post',
    data: parameter
  })
}

/**
 * 查询销售出库详情
 *
 * @author Eric
 * @date 2021-04-04 08:55:37
 */
export function outboundSaleDetail (code) {
  return axios({
    url: '/outboundSale/detail',
    method: 'get',
    params: { outboundCode: code }
  })
}
